package seqlist.stack;

/**
 * @author yuisama
 * @date 2022/05/09 21:07
 **/
public class StackTest {
    public static void main(String[] args) {
        MyStack<Integer> stack = new MyStack<>();
        stack.push(1);
        stack.push(3);
        stack.push(5);
        stack.push(7);
        stack.push(9);
        System.out.println(stack);
        // 9
        System.out.println(stack.pop());
        System.out.println(stack);
    }
}